package com.google.code.jgchart;

public class ChartDataScaling implements UrlQuery {

	private static final String PARAM = "chds=";

	private StringBuilder strDataScaling = new StringBuilder();

	public ChartDataScaling() {
	}

	public ChartDataScaling append(int min, int max) {
		if (strDataScaling.length() > 0) {
			strDataScaling.append(",");
		}
		strDataScaling.append(min).append(",").append(max);
		return this;
	}

	public String[] getQuery() {
		return new String[] { PARAM + strDataScaling.toString() };
	}

}
